package fr.umlv.m2.jee.spij.service.attribution;

import fr.umlv.m2.jee.spij.service.ldap.authentification.DisplayActor;
import org.springframework.binding.message.MessageContext;

import java.util.List;
/**
 * Provides methods to retrieve attribution into databases from DAO.
 * @author lounes
 *
 */
public interface IDisplayAttributionService {

    /**
     * returns all units attribution for a teacher.
     *
     * @param teacher
     * @param context
     *
     * @return
     */
    public List<DisplayAttribution> getAllDisplayAttributionForTeacher(DisplayActor teacher, MessageContext context);

    /**
     * create attribution a unit for a teacher
     *
     * @param teacher
     * @param attribution
     * @param context
     *
     * @return
     */
    public boolean createAttribution(DisplayActor teacher, DisplayAttribution attribution, MessageContext context);

    /**
     * remove attribution unit for a teacher
     *
     * @param attribution
     * @param context
     *
     * @return
     */
    public boolean removeAttribution(DisplayAttribution attribution, MessageContext context);

}
